﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using Entities;

namespace WcfServiceLib
{
    // 注意: 使用“重构”菜单上的“重命名”命令，可以同时更改代码和配置文件中的接口名“IService1”。
    [ServiceContract]
    public interface IService1
    {
        [OperationContract]
        Users Login(string loginID, string password);
        [OperationContract]
        bool Regist(string loginID, string password, string nickName);
        [OperationContract]
        bool CheckLoginExist(string loginID);
        [OperationContract]
        void CreateDatabase();
        [OperationContract]
        Dictionary<int, string> GetFriendsList(int id);
        [OperationContract]
        Users GetUsers(int id);
        [OperationContract]
        bool AddFriend(int myid, string myname, int friendid, string friendname);
        [OperationContract]
        bool EditNickName(int id, string nickName);
    }
}
